package com.crowntit.infrastructure.dao;

import com.crowntit.infrastructure.dao.po.NotifyTask;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface INotifyTaskDao {

    void insertNotifyTask(NotifyTask notifyTask);

    NotifyTask queryUnExecutedNotifyTaskByTeamId(String teamId);

    List<NotifyTask> queryUnExecutedNotifyTaskList();

    int updateNotifyTaskStatus2SUCCESS(String teamId);

    int updateNotifyTaskStatus2ERROR(String teamId);

    int updateNotifyTaskStatus2RETRY(String teamId);
}
